<div id="cart" class="cart_modal">
	<div th:fragment="title" th:inline="text" style="display: none;">Carrito - Fondoofertas</div>
	
	<table th:substituteby="cart/partials/cartProductsTable"></table>
	<div id="cart_total" class="group">
		<h3>Su actual Subtotal</h3>
		<div id="subtotal" th:unless="${cart.subTotal.zero}" blc:price="${cart.subTotal.subtract(cart.orderAdjustmentsValue)}"></div>
		<div id="orderDiscounts" th:unless="${cart.orderAdjustmentsValue.zero}">
			Descuento: <span blc:price="${cart.orderAdjustmentsValue}" />
		</div>
		<p>El Subtotal no incluye impuestos y cargos de env&iacute;o.</p>
		<div id="checkout"><a th:href="@{/checkout}" target="_top" class="big-button red-button">Checkout</a></div>
		<p><a th:href="@{/}" target="_top">&laquo; Contin&uacute;e Comprando</a></p>
	</div>
	<blc:form id="cart_promo" method="POST" th:action="@{/cart/promo}">
		<label for="promoCode">C&oacute;digo de Promo:</label>
		<input id="promoCode" name="promoCode" type="text" th:value="*{promoCode}" value="" maxlength="10" autocomplete="off"/>
		<input type="submit" id="addPromo" name="addPromo" value="Aplicar Descuento" class="small red" />
		<div th:each="promo : ${cart.addedOfferCodes}" th:object="${promo}" th:remove="tag">
			<div class="promo"><span th:text="*{offerCode}" th:remove="tag"/> <a class="remove_promo" th:href="@{/cart/promo/remove(offerCodeId=*{id})}"><i class="icon-remove"></i></a></div>
		</div>
		<div id="cart_promo_error" style="display: none;"></div>
	</blc:form>
	
	<div id="blc-extra-data" class="hidden" th:utext="${blcextradata}" th:if="${!#strings.isEmpty(blcextradata)}"></div>

</div>